package com.yf.constants;

/**
 * Ai 相关常量
 *
 * @author : YiFei
 * @since : 2025/7/3 12:08
 */
public interface AiConstants {

    /**
     * AI Message Source
     */
    String AI_MESSAGE_SOURCE = """
                                        
            > The AI message comes from <a href="http://www.yfly.org.cn" target="_blank"> YF </a>
            > If you have any questions, please contact the administrator.
            """;

    /**
     * AI Default Provider
     */
    String AI_DEFAULT_PROVIDER = "YiFei";

    /**
     * AI Default Provider Icon
     */
    String AI_DEFAULT_PROVIDER_ICON = "logo";

    /**
     * Image template for displaying images in HTML format.
     */
    String TOOL_IMAGE_TEMPLATE = "<img src=\"%s\" alt=\"%s\" />";


    String GEN_TITLE_MESSAGE_TEMPLATE = """
            user-prompt: %s
            ------------------------------
            ai-prompt: %s
            ------------------------------
            """;
    /**
     * System prompt for generating concise titles from chat logs.
     */
    String TITLE_SYSTEM_PROMPT = "Generate a concise title for the provided chat log. Follow these rules:\n" +
            "1. Use Chinese if the chat is mainly Chinese, otherwise use English.\n" +
            "2. For Chinese titles: Strictly 10-20 characters.\n" +
            "3. For English titles: Strictly 20-40 characters.\n" +
            "4. Summarize the core topic without adding commentary.\n" +
            "5. Do not include any special characters in the title";
}
